﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020014D3 RID: 5331
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class UpdateServerPrefsDataScRsp : IMessage<UpdateServerPrefsDataScRsp>, IMessage, IEquatable<UpdateServerPrefsDataScRsp>, IDeepCloneable<UpdateServerPrefsDataScRsp>, IBufferMessage
	{
		// Token: 0x17004319 RID: 17177
		// (get) Token: 0x0600EE63 RID: 61027 RVA: 0x0027CAB1 File Offset: 0x0027ACB1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<UpdateServerPrefsDataScRsp> Parser
		{
			get
			{
				return UpdateServerPrefsDataScRsp._parser;
			}
		}

		// Token: 0x1700431A RID: 17178
		// (get) Token: 0x0600EE64 RID: 61028 RVA: 0x0027CAB8 File Offset: 0x0027ACB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return UpdateServerPrefsDataScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700431B RID: 17179
		// (get) Token: 0x0600EE65 RID: 61029 RVA: 0x0027CACA File Offset: 0x0027ACCA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return UpdateServerPrefsDataScRsp.Descriptor;
			}
		}

		// Token: 0x0600EE66 RID: 61030 RVA: 0x0027CAD1 File Offset: 0x0027ACD1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpdateServerPrefsDataScRsp()
		{
		}

		// Token: 0x0600EE67 RID: 61031 RVA: 0x0027CAD9 File Offset: 0x0027ACD9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpdateServerPrefsDataScRsp(UpdateServerPrefsDataScRsp other) : this()
		{
			this.serverPrefsId_ = other.serverPrefsId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600EE68 RID: 61032 RVA: 0x0027CB0A File Offset: 0x0027AD0A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpdateServerPrefsDataScRsp Clone()
		{
			return new UpdateServerPrefsDataScRsp(this);
		}

		// Token: 0x1700431C RID: 17180
		// (get) Token: 0x0600EE69 RID: 61033 RVA: 0x0027CB12 File Offset: 0x0027AD12
		// (set) Token: 0x0600EE6A RID: 61034 RVA: 0x0027CB1A File Offset: 0x0027AD1A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ServerPrefsId
		{
			get
			{
				return this.serverPrefsId_;
			}
			set
			{
				this.serverPrefsId_ = value;
			}
		}

		// Token: 0x1700431D RID: 17181
		// (get) Token: 0x0600EE6B RID: 61035 RVA: 0x0027CB23 File Offset: 0x0027AD23
		// (set) Token: 0x0600EE6C RID: 61036 RVA: 0x0027CB2B File Offset: 0x0027AD2B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600EE6D RID: 61037 RVA: 0x0027CB34 File Offset: 0x0027AD34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as UpdateServerPrefsDataScRsp);
		}

		// Token: 0x0600EE6E RID: 61038 RVA: 0x0027CB42 File Offset: 0x0027AD42
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(UpdateServerPrefsDataScRsp other)
		{
			return other != null && (other == this || (this.ServerPrefsId == other.ServerPrefsId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600EE6F RID: 61039 RVA: 0x0027CB80 File Offset: 0x0027AD80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ServerPrefsId != 0U)
			{
				num ^= this.ServerPrefsId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600EE70 RID: 61040 RVA: 0x0027CBD8 File Offset: 0x0027ADD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600EE71 RID: 61041 RVA: 0x0027CBE0 File Offset: 0x0027ADE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600EE72 RID: 61042 RVA: 0x0027CBEC File Offset: 0x0027ADEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ServerPrefsId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.ServerPrefsId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600EE73 RID: 61043 RVA: 0x0027CC48 File Offset: 0x0027AE48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ServerPrefsId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ServerPrefsId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600EE74 RID: 61044 RVA: 0x0027CCA0 File Offset: 0x0027AEA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(UpdateServerPrefsDataScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ServerPrefsId != 0U)
			{
				this.ServerPrefsId = other.ServerPrefsId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600EE75 RID: 61045 RVA: 0x0027CCF0 File Offset: 0x0027AEF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600EE76 RID: 61046 RVA: 0x0027CCFC File Offset: 0x0027AEFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 72U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.ServerPrefsId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005E37 RID: 24119
		private static readonly MessageParser<UpdateServerPrefsDataScRsp> _parser = new MessageParser<UpdateServerPrefsDataScRsp>(() => new UpdateServerPrefsDataScRsp());

		// Token: 0x04005E38 RID: 24120
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005E39 RID: 24121
		public const int ServerPrefsIdFieldNumber = 9;

		// Token: 0x04005E3A RID: 24122
		private uint serverPrefsId_;

		// Token: 0x04005E3B RID: 24123
		public const int RetcodeFieldNumber = 12;

		// Token: 0x04005E3C RID: 24124
		private uint retcode_;
	}
}
